import java.io.File;
import java.util.Arrays;
 
public class demo_file {
    public static void main(String[] args) {
        File file = new File("/Users/programb");
        String[] files = file.list();
        System.out.println(files);
        System.out.println(Arrays.toString(files));
    }
}